<!--开通登录-->
<template>
  <div class="login_wrap">
      <div class="login_content">
          <div class="user_head">
              <div class="head">
                <img  src="../assets/icon/default_head.jpg" alt="">
              </div>
              <div class="tit">
                  <p class="sanjiao"></p>
                  <p>哇哈哈哈哈</p>
              </div>
          </div>

          <div class="btn_sure">
              <button @click="logoutBtn">退出登录</button>
          </div>
      </div>
  </div>
</template>
<script>
import { Toast } from "mint-ui";

export default {
  data() {
    return {
      showDefaultImg:true,
      sharePlannerId:'',
      headUrl: "https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E5%85%94%E5%AD%90%E5%A4%B4%E5%83%8F&hs=2&pn=1&spn=0&di=162588255060&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&ie=utf-8&oe=utf-8&cl=2&lm=-1&cs=1284127531%2C1583912286&os=2217046040%2C2480358519&simid=0%2C0&adpicid=0&lpn=0&ln=30&fr=ala&fm=&sme=&cg=&bdtype=0&oriquery=%E5%85%94%E5%AD%90%E5%A4%B4%E5%83%8F&objurl=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201501%2F29%2F20150129181959_rXnBA.jpeg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3B17tpwg2_z%26e3Bv54AzdH3Fks52AzdH3F%3Ft1%3Dna9bdbldm&gsm=0&islist=&querylist=",
    };
  },
  mounted() {

  },
  methods: {

    // 退出登录
    async logoutBtn(iphone,code) {
		try {
			const res = await this.axios.post('/api/logout');
			console.log(res)
			if(res.status === 200) {
        if(res.data.state === 1){
          Toast("退出成功");
        }else{
          Toast("退出失败");
        }
      }
		} catch(err) {
			console.error(err);
		}
	},

  },
  beforeDestroy() {

  }
};
</script>
<style scoped>
.login_wrap {
  width: 100%;
  height: 100%;
}
.login_wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login_content {
  flex: 1;
  background: rgba(204, 204, 204, 0.171);
  height: 100%;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}
.user_head {
  width: 100%;
  height: 3.11rem;
  background: url(../assets/icon/user_bg.png) no-repeat center top;
  background-size: 100% 100%;
  position: relative;
}
.user_head .head {
  width: 13.1%;
  height: 0.98rem;
  background: mediumslateblue;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 20%;
  margin-left: -6.5%;
  overflow: hidden;
}
.user_head .head img {
  width: 100%;
  height: 0.98rem;
}
.tit {
  width: 100%;
  padding-top: 1.96rem;
  text-align: center;
  margin: 0 auto;
}
.tit > p:nth-child(2) {
  width: 75.7%;
  height: 0.82rem;
  background: rgba(0, 0, 0, 0.33);
  border-radius: 0.08rem;
  margin: 0 12.15%;
  font-size: 0.28rem;
  color: #ffffff;
  letter-spacing: 0;
  text-align: center;
  line-height: 0.82rem;
}
.user_head .sanjiao {
  width: 0;
  height: 0;
  border-left: 0.15rem solid transparent;
  border-right: 0.15rem solid transparent;
  border-bottom: 0.3rem solid rgba(0, 0, 0, 0.33);
  position: absolute;
  left: 50%;
  margin-left: -0.15rem;
  top: 53.5%;
}
.login {
  width: 100%;
  text-align: center;
}
</style>


